package org.check.UI;

import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;

public class ContactPanel extends JPanel {

	/**
	 * Create the panel.
	 */
	public ContactPanel() {
		setBorder(new TitledBorder(null, "\u5E2E\u52A9", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		setBackground(new Color(135, 206, 235));
		
		setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));

		JButton button_contactDevelopers = new JButton("联系研发");
		button_contactDevelopers.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				JOptionPane.showMessageDialog(null, "秦泽星：QQ 53396300\n刘照南：QQ 742674145", "研发联系方式", JOptionPane.PLAIN_MESSAGE);
			}
		});
		add(button_contactDevelopers);
	}

}
